﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="createCategory.aspx.cs" Inherits="PHTShop.admin.createCategory" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {

            $('#<%=Button1.ClientID %>').click(function () {
                var catEn = $('#<%=CatName_en.ClientID %>').val();
                var catFr = $('#<%=CatName_fr.ClientID %>').val();
                var catGr = $('#<%=CatName_gr.ClientID %>').val();
                if (catEn == "" && catFr == "" && catGr == "") {
                    $('#<%=labelError.ClientID %>').text("Category name can not be empty");

                    return false;
                }
                else {
                    return true;
                }


            });



        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ajaxToolkit:ToolkitScriptManager runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <!-- Title -->
    <div id="title" class="b2">
        <h2>
            Create Category</h2>
       
    </div>
    <!-- Title -->
    <div>
        <p>
        </p>
        <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" Height="100px" ActiveTabIndex="0">
            <ajaxToolkit:TabPanel HeaderText="English" ID="TabPanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label1" runat="server" Text="Category Name"></asp:Label> <input type="text" title="Fusce elementum" id="CatName_en" name="field1b" class="text" runat="server"/>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>

            <ajaxToolkit:TabPanel HeaderText="France" ID="TabPanel2" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label2" runat="server" Text="Category Name"></asp:Label>  <input type="text" title="Fusce elementum" id="CatName_fr" name="field1b" class="text" runat="server"/>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>

            <ajaxToolkit:TabPanel HeaderText="Germany" ID="TabPanel3" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label3" runat="server" Text="Category Name"></asp:Label>      <input type="text" title="Fusce elementum" id="CatName_gr" name="field1b" class="text" runat="server"/>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
        <asp:Label ID="labelError" runat="server" Text="" ForeColor="Red"></asp:Label>
        <br />
       
        <asp:Button CssClass="css_btn_class" ID="Button1"  runat="server" Text="Save" 
            onclick="Button1_Click" onclientclick="check()" />
        <br />
        <br />
      
    </div>
    </asp:Content>
